/**
 * Project of Vehicle Routing Problem with Time Windows implements 
 * some of well-known algorithms for solving VRPTW and presents new 
 * one.
 *
 * @author Michal Drobny  
 */

package util;

/**
 * Represents the generic helper class for storing 2 value objects.
 *
 * @author Michal Drobny
 * @date 7.11.2014
 */
public abstract class Pair<K, V> implements Comparable<Pair<K, V>> {

	private final K key;
	private final V value;

	/**
	 * Constructor.
	 * 
	 * @param key
	 *            The key
	 * @param value
	 *            The value
	 */
	public Pair(K key, V value) {
		super();
		this.key = key;
		this.value = value;
	}

	/**
	 * Gets the key.
	 * 
	 * @return the key
	 */
	public K getKey() {
		return key;
	}

	/**
	 * Gets the value
	 * 
	 * @return the value
	 */
	public V getValue() {
		return value;
	}
}